package com.salt.modules.log.props;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @Description
 * @Author salt
 * @Date 2023/4/14
 * @Version 1.0.1
 */
@Data
@Component
@ConfigurationProperties(prefix = "salt.log.consumer.kafka")
public class KafkaProperties {

    private String servers;
    // consumer消费组ID
    private String groupId;
    // latest：从最新的消息开始消费；earliest：从最老的消息开始消费
    private String autoOffsetReset;
    private String topics;  // 多个主题


}
